<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

<style type="text/css"> @import url( "<c:url value='/css/default.css'/>" );</style>

<html:form action="/cashedit">
    <c:forEach var="cach" items="${checkoutForm.cashes}">        
        <c:if test="${cach.number == cashInOutEditForm.number}">
            <html:hidden name="cach" property="number"/>
            <table>
                <tbody>
                    <tr>
                        <td><bean:message key="modal.checkout.view.cach.method"/></td>
                        <td>
                            <html:select name="cach" property="paymentBean.method">
                                <html:optionsCollection property="methods" label="label" value="value"/>
                            </html:select>
                        </td>
                    </tr>
                    <tr>
                        <td><bean:message key="modal.checkout.view.cach.amount"/></td>
                        <td><html:text name="cach" property="paymentBean.amount"/></td>
                    </tr>
                    <tr>
                        <td><bean:message key="modal.checkout.view.cach.notes"/></td>
                        <td><html:text name="cach" property="notes"/></td>
                    </tr>
                </tbody>
            </table>
            <html:submit property="submittedValue">
                <bean:message key="payment.save.submit"/>
            </html:submit>
        </c:if>
    </c:forEach>
</html:form>